package com.mini.core.cfg;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @author sxjun
 * 2016-2-4
 */
@Component
@Aspect
public class EntitySetterAspect {
	//配置切入点,该方法无方法体,主要为方便同类中其他方法使用此处配置的切入点
	@Pointcut("execution(* com.mini.example.bean.*.set*(..))")
	public void aspect(){}
	
	//配置后置通知,使用在方法aspect()上注册的切入点
	@After("aspect()")
	public void after(JoinPoint joinPoint){
		Object o = joinPoint.getTarget();
		System.out.println();
	}
}
